// 拿轮播图
import { getBannerAPI } from '@/apis/Home';
import { onMounted, ref } from 'vue';
export function useBanner() {
  const homeList = ref([])
  const getBanner = async () => {
    const res = await getBannerAPI({ distributionSite: '2' })
    homeList.value = res.data.result
  }
  onMounted(() => {
    getBanner()
  })
  return {
    homeList
  }
}
